<?php
class Staticizer_Index_Procurement extends Staticizer
{
    public function Build($param=NULL)
    {
        $data=DB::GetRows('select Account,Title,DateTime,M_HTMLFilePath from Procurement order by DateTime limit 0,7');
        {
            for($i=0;$i<count($data);$i++)
            {
                $temp=DB::PGetRows('select * from Account where Username=? limit 0,1',array(
                    $data[$i]['Account']
                ));
                $data[$i]['City']=$temp[0]['City'];
            }
        }
        
        View::Assign('Procurements',$data);        
        $this->Save('index/procurement.html',View::Fetch('index/procurement.tpl'));
    }
}
?>
